import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';

class ActionChipDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('ActionChip'),
        centerTitle: true,
      ),
      body: Center(
          child: Column(
        children: <Widget>[
          TextWidget('ActionChip比Chip多一个onPressed事件:'),
          ActionChip(
            label: Text('ActionChip'),
            labelStyle: TextStyle(color: Colors.black54),
            onPressed: () {
              print('点击');
            },
            backgroundColor: Colors.orange,
          ),
        ],
      )),
    );
  }
}
